Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~George Rehipipulgon 30.Sep.03 10:55 PM a Web browser
Domino Designer 6.0.1 CF1 Windows 2000


I have to open a notes form (child window) from the parent window. But before the child window opens the parent window (document) needs to be saved and reopened. I am using javascript to do this. Relevant code snippet is given below:

if (CompletedCheck())
{
document.all.SaveOpenForward.click();

var open_forward = document.forms[0].opennextform.value;
if (open_forward == "Yes")
{
callforwardform();
}
}


function callforwardform()
{
try {

var loc;
var id_var = document.forms[0].DealUniqueId.value;
loc = window.parent[0].location.href;
loc = loc.substring(0,loc.lastIndexOf("/")) + "/ChildForm?OpenForm&ParentUNID=" +id_var;
OpenWindow = window.open(loc,"","width=675px,height=460px,top=0px,left=0px,scrollbars=yes");
OpenWindow.focus();
}
catch( e ) {
alert('error in ForwardForm');
}
}

I need to save the parent document before opening the child form as I need the child form to inherit some field values from main document.

The problem is even before the main document is saved and re-opened the child window opens. The parent window continues to process in the background and reopens after the child window has opened.

How do I stop the child window from opening before the parent document is saved and reopened????

Thanks






JavaScript Question - Opening child... (~George Rehipip... 30.Sep.03)
. . RE: JavaScript Question - Opening c... (~Justin Minlute... 30.Sep.03)
. . . . RE: JavaScript Question - Opening c... (~George Rehipip... 1.Oct.03)
. . . . . . RE: JavaScript Question - Opening c... (~Justin Minlute... 1.Oct.03)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS